package api

import (
	"fsd/fight"
	"net/http"
)

type AllGameAck struct {
	GameIds []uint64 `json:"game_ids"`
}

func AllGame(w http.ResponseWriter, req *http.Request) {
	ids := fight.GameMgr.AllGameIds()
	retJson(w, &AllGameAck{
		GameIds: ids,
	})
}
